package com.sqznkj.Dao;

import com.sqznkj.entity.comInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface comInfoDao {
    @Select("select * from comInfo where id = 1")
    comInfo getComInfo();
    @Update("update comInfo set telephone = #{telephone},Mobilephone = #{Mobilephone},email = #{email},adress = #{adress} where id = 1")
    int editComInfo(comInfo cominfo);
}
